//
//  UIView+setup.h
//  InitDemo
//
//  Created by 江伟 on 2018/8/15.
//  Copyright © 2018年 weiJiang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^ClickBtnBlock) (UIButton *btn);

@interface UIView_setup : NSObject

@end

@interface UILabel (setup)
- (instancetype)initWithBackgroundColor:(UIColor *)backColor text:(NSString *)text textColor:(UIColor *)textColor font:(UIFont *)font textAlignment:(NSTextAlignment)alignment;
@end

/// 这个btn支持点击事件以block形式实现
@interface UIButton (setup)
@property (nonatomic,copy) ClickBtnBlock clickBlock;
+ (UIButton *)setupBtnWithBackgroundColor:(UIColor *)bkColor title:(NSString *)title titleColor:(UIColor *)tColor isBkImg:(BOOL)isBkImg image:(UIImage *)img target:(id)target selector:(SEL)selector;
@end
